﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace ISSGroup5ModelPresenter.Model
{
    public static class ApplicationController
    {
        private static INavigationWorkflow instance;

        public static void Register(INavigationWorkflow ins)
        { 
            if (ins == null)
                throw new ArgumentNullException();
            instance = ins;
        }

        public static void NavigateTo(EViewType view)
        {
            instance.NavigateTo(view, null);
        }

        public static void NavigateTo(EViewType view, object arg)
        {
            instance.NavigateTo(view, arg);
        }
    }
}
